import $http from '@/assets/js/http'


//获取保证金
export function getMargin(){
	return $http.get('/manage/config/getBondFee',{
		params:{}
	})
}
//获取藏品审核费用
export function getAudit(){
	return $http.get('/manage/config/getCheckFee',{
		params:{}
	})
}
//获取中文用户协议
export function getUserCN(){
	return $http.get('/manage/config/getUserxieyi/cn',{
		params:{}
	})
}
//获取英文用户协议
export function getUserEN(){
	return $http.get('/manage/config/getUserxieyi/en',{
		params:{}
	})
}
//获取平台收货地址
export function getAddress(){
	return $http.get('/manage/config/getPlatformAddress',{
		params:{}
	})
}


//设置保证金
export function postBondFee(bondFee){
	return $http.post('/manage/config/setBondFee',{
		bondFee:bondFee
	})
}
//设置藏品审核费用
export function postCheckFee(checkFee){
	return $http.post('/manage/config/setCheckFee',{
		checkFee:checkFee
	})
}
//设置用户协议中文
export function postUserCN(xieyi){
	return $http.post('/manage/config/setUserXieyi/cn',{
		xieyi:xieyi
	})
}

//设置用户协议英文
export function postUserEN(xieyi){
	return $http.post('/manage/config/setUserXieyi/en',{
		xieyi:xieyi
	})
}

//设置平台收货地址
export function postAddress(params){
	return $http.post('/manage/config/setPlatformAddress',{
		lang:params.lang,
		name:params.name,
		mobile:params.mobile,
		province:params.province,
		city:params.city,
		district:params.district,
		address:params.address,
		zipCode:params.zipCode,
	})
}